<?php if (getObjectProperty("showCategories") && count($categories)): ?>
	<h2>Categories</h2>
	<div class="portletinfo"><ul>
		<?php foreach ($categories as $i): ?>
			<li><strong><a href="<?php echo Gene::makeLink($object) ?>/view/tag/<?php echo str_replace (" ", "_", $i['label']) ?>">
			<?php _e($i['label']) ?></a></strong> (<?php _e($i['objects']) ?>)</li>
		<?php endforeach; ?>
	</ul></div>
<?php endif; ?>

<?php if (getObjectProperty("showLatestComments") && count($recentcomments)): ?>
	<h2>Latest Comments</h2>
	<div class="portletinfo"><ul>
		<?php foreach ($recentcomments as $i): ?>
			<li><strong><a href="<?php echo Gene::makeLink($i['object_id']) ?>">
			<?php _e(truncate(str_replace('Re:','',$i['title']), 30)) ?></a>
			</strong><br />
			<?php if ($i['owner_id']): ?>
				<?php _e($i['name']) ?>
			<?php else: ?>
				"<?php _e($i['guest_name']) ?>"
			<?php endif; ?></li>
		<?php endforeach; ?>
	</ul></div>
<?php endif; ?>